package com.migration.model.olddb;

import jakarta.persistence.*;
import lombok.Data;
import java.time.LocalDateTime;
import java.io.Serializable;

/**
 * 严重性等级表 实体类
 * 表名：ra_severity_grade
 * 自动生成的实体类
 */
@Data
@Entity
@Table(name = "ra_severity_grade")
public class RaSeverityGrade implements Serializable {

    private static final long serialVersionUID = 1L;
    
    /**
     * 主键
     * 主键
     */
    @Id
    @Column(name = "id", nullable = false)
    private Long id;
    
    /**
     * 严重性等级
     */
    @Column(name = "grade", length = 16)
    private String grade;
    
    /**
     * 健康安全影响
     */
    @Column(name = "health_safety_effect", length = 512)
    private String healthSafetyEffect;
    
    /**
     * 环境影响
     */
    @Column(name = "enviro_effect", length = 512)
    private String enviroEffect;
    
    /**
     * 财产损失
     */
    @Column(name = "asset_loss", length = 512)
    private String assetLoss;
    
    /**
     * 公众声誉影响
     */
    @Column(name = "community_fame_effect", length = 512)
    private String communityFameEffect;
    
    /**
     * 排序
     * 默认值: 1
     */
    @Column(name = "index_sort")
    private Integer indexSort;
    
    /**
     * 租户主键ID
     * 默认值: 1
     */
    @Column(name = "tenant_id")
    private Integer tenantId;
    
    /**
     * 是否删除（0、否1、是）
     * 默认值: 0
     */
    @Column(name = "is_del", nullable = false)
    private Byte isDel;
    
    /**
     * 创建时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "create_time", nullable = false)
    private java.time.LocalDateTime createTime;
    
    /**
     * 创建者
     */
    @Column(name = "create_by", length = 64)
    private String createBy;
    
    /**
     * 更新时间
     * 默认值: CURRENT_TIMESTAMP
     */
    @Column(name = "update_time", nullable = false)
    private java.time.LocalDateTime updateTime;
    
    /**
     * 更新者
     */
    @Column(name = "update_by", length = 64)
    private String updateBy;
    
    @Override
    public String toString() {
        return "RaSeverityGrade{" +
            "id=" + id +
            ", grade=" + grade +
            ", healthSafetyEffect=" + healthSafetyEffect +
            ", enviroEffect=" + enviroEffect +
            ", assetLoss=" + assetLoss +
            ", communityFameEffect=" + communityFameEffect +
            ", indexSort=" + indexSort +
            ", tenantId=" + tenantId +
            ", isDel=" + isDel +
            ", createTime=" + createTime +
            ", createBy=" + createBy +
            ", updateTime=" + updateTime +
            ", updateBy=" + updateBy +
        '}';
    }
} 